<%@ taglib prefix="s" uri="/struts-tags" %>
<%@page import="com.ids.bean.UserInfo"%>
<html>
	<head>
	<link href="<s:url value="/css/main.css"/>" rel="stylesheet" type="text/css"/>
    <title>Admin Login</title>
	</head>
	<body>
	<table align="center" class="borderAll" >
  	<tr><td>
    <%        
		UserInfo userInfo = (UserInfo) session.getAttribute("userInfo");
		String userName=""  ;
		boolean isLeadOrManager=false;
		if (null==userInfo){
		response.sendRedirect("LoginScreen.action");
		}else if (userInfo.getRole().equalsIgnoreCase("superadmin")){
  		 userName = userInfo.getUserFullName();
   		 isLeadOrManager = userInfo.isLeadOrManager();
		} else {
		response.sendRedirect("LoginScreen.action");
		}
	%>
  		<strong>Hi, <%=userName%></strong>
		<td colspan="1" align="right"><a href="<s:url action="UserCreationScreen"/>">Create User Account</a> &nbsp;|&nbsp; <a href="<s:url action="AdminChangeEmployeePassword"/>">Change Employee Password</a>&nbsp;|&nbsp; <a href="<s:url action="ChangeAdminPasswordScreen"/>"> Change Admin Password</a>&nbsp;|&nbsp;
		<a href="<s:url action="LogOut"/>">Log Out</a> </td></tr>
    	</table>
  	</body>
</html>